<?php
namespace Decorator\Concrete;

include_once "DecoratorInterface.php";
include_once "AbstractDecorator.php";

use Decorator\DecoratorInterface;
/** 具体装饰类B */
class DecoratorB extends AbstractDecorator implements DecoratorInterface
{
    public function operation()
    {
        /** 运行父类装饰方法 */
        parent::operation();
        /** 自己的装饰 */
        echo "我是具体装饰类B" . PHP_EOL;
    }
}